#include "widget.h"
#include "ui_widget.h"
#include "mylabel.h"
#include <QLabel>


Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    //QLabel* label= new QLabel(this);
    //label->setText("Hello world好好好");
    //label->setNum(2);
    //label->setParent(this);

    MyLabel* mylabel = new MyLabel(this);
    mylabel->setText("Hello world好好好");

}

Widget::~Widget()
{
    delete ui;
}

